package com.tujia.service.impl;

import com.tujia.dao.CityInfoDao;
import com.tujia.domain.CityInfo;
import com.tujia.service.CityInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("cityInfoService")
public class CityInfoServiceImpl implements CityInfoService {
    private final static Logger logger = LoggerFactory.getLogger(CityInfoServiceImpl.class);
    @Autowired
    private CityInfoDao cityInfoDao;
    
    public CityInfo getCityList(Integer id) throws Exception {
        logger.info("service中的日志: {}", "info");
        logger.debug("service中的日志: debug");
        return cityInfoDao.getCityList(id);
    }
}
